package cn.qffj.memo.repository;

import cn.qffj.memo.domain.TextContent;
import cn.qffj.memo.domain.User;
import org.springframework.data.jpa.repository.JpaRepository;

import java.security.PublicKey;
import java.util.List;

public interface TextContentRepositroy extends JpaRepository<TextContent,Long>{
    //通过用户名查询文本
   public List<TextContent> findByUserName(String userName);
   //通过用户名删除文本
    public void deleteByUserName(String userName);
    //通过用户查询是否有写入文字
    public boolean existsByUserName(String userName);

}